package ernest.uicompare

import android.content.Context
import android.provider.Settings


fun Context.hasDisplayWindowPermission(): Boolean {
    return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M &&
            !Settings.canDrawOverlays(this)
}
